<template>
  <view class="advice">
    <!-- 标题 -->
    <text style="line-height: 50px;color: rgba(52, 152, 219, 1);"> 改进建议 </text>
    <!-- 内容 -->
    <view class="content">
      <view v-for="item in adviceList" :key="item" class="item">
        <text>{{ item.text }}</text>
        <text>{{ item.dushu }}°</text>
      </view>
    </view>
  </view>
</template>

<script setup lang="ts">
import { ref } from 'vue';
const adviceList = ref<{
  text: string,
  dushu: number
}[]>([])

adviceList.value = [
  {
    text: '摆臂',
    dushu: 1
  },
  {
    text: '屈膝',
    dushu: 15
  },
  {
    text: '身体倾斜',
    dushu: 3
  }
]
</script>

<style>
.advice {
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 1);
  border-radius: 10px;
  margin: 10px 0;
}

.content {
  margin: 15px 2% 0;
}

.item {
  display: flex;
  margin-bottom: 10px;
  justify-content: space-between;
  padding-right: 16px;
}

.item .text {
  font-size: 16px;
  background-color: rgba(0, 0, 0, 1);
}

.model {
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 1);
  border-radius: 10px;
}

.modelCard {
  display: flex;
  align-items: center;
  height: 42px;
  font-size: 15px;
  color: black;
  margin-bottom: 4px;
}
</style>
